package com.js.service.sys;

import com.js.domian.entity.sys.UserEntity;
import com.js.mapper.sys.UserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class UserService {

    private final UserMapper userMapper;

    public UserEntity getUserByUserId(Integer userId){
        return userMapper.getUserByUserId(userId);
    }

    public UserEntity getUserByUserName(String userName){
        return userMapper.getUserByUserName(userName);
    }
}
